import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter/material.dart';



class DkEasyRefreshController extends EasyRefreshController {
  DkEasyRefreshController():super();
}


class DkClassicalHeader extends ClassicalHeader {
  DkClassicalHeader({
    extent = 60.0,
    triggerDistance = 70.0,
    float = false,
    completeDuration = const Duration(seconds: 1),
    enableInfiniteRefresh = false,
    enableHapticFeedback = false,
    key,
    alignment,
    refreshText: "Pull to refresh",
    refreshReadyText: "Release to refresh",
    refreshingText: "Refreshing...",
    refreshedText: "Refresh completed",
    refreshFailedText: "Refresh failed",
    noMoreText: "No more",
    showInfo: true,
    infoText: "Updated at %T",
    bgColor: Colors.transparent,
    textColor: Colors.black,
    infoColor: Colors.teal,
  }) : super(
    extent : extent,
    triggerDistance : triggerDistance,
    float : float,
    completeDuration : completeDuration,
    enableInfiniteRefresh : enableInfiniteRefresh,
    enableHapticFeedback : enableHapticFeedback,
    key : key,
    alignment : alignment,
    refreshText : refreshText,
    refreshReadyText : refreshReadyText,
    refreshingText : refreshingText,
    refreshedText : refreshedText,
    refreshFailedText: refreshFailedText,
    noMoreText : noMoreText,
    showInfo : showInfo,
    infoText : infoText,
    bgColor : bgColor,
    textColor : textColor,
    infoColor : infoColor,
  );
}


class DkClassicalFooter extends ClassicalFooter {
  DkClassicalFooter({
    extent : 60.0,
    triggerDistance : 70.0,
    float : false,
    completeDuration : const Duration(seconds: 1),
    enableInfiniteLoad : true,
    enableHapticFeedback : false,
    key,
    alignment,
    loadText: "Push to load",
    loadReadyText: "Release to load",
    loadingText: "Loading...",
    loadedText: "Load completed",
    loadFailedText: "Load failed",
    noMoreText: "No more",
    showInfo: true,
    infoText: "Updated at %T",
    bgColor: Colors.transparent,
    textColor: Colors.black,
    infoColor: Colors.teal,
  }) : super (
    extent : extent,
    triggerDistance : triggerDistance,
    float : float,
    completeDuration : completeDuration,
    enableInfiniteLoad : enableInfiniteLoad,
    enableHapticFeedback : enableHapticFeedback,
    key : key,
    alignment : alignment,
    loadText: loadText,
    loadReadyText: loadReadyText,
    loadingText: loadingText,
    loadedText: loadedText,
    loadFailedText: loadFailedText,
    noMoreText: noMoreText,
    showInfo: showInfo,
    infoText: infoText,
    bgColor: bgColor,
    textColor: textColor,
    infoColor: infoColor,
  );
}